From 04e18a46443b343edaeeb97f181391d2a9214331 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 11 Nov 2004 22:27:55 +0000 Subject: [PATCH] Add uuid, update reference files from Justin. --- gpsbabel/reference/coastexp.ref2 | 171 ++++++++++++++++++++++ gpsbabel/reference/coastexp.ref3 | 238 +++++++++++++++++++++++++++++++ gpsbabel/reference/coastexp.ref4 | 156 ++++++++++++++++++++ gpsbabel/uuid.c | 47 ++++++ gpsbabel/uuid.h | 22 +++ 5 files changed, 634 insertions(+) create mode 100644 gpsbabel/reference/coastexp.ref2 create mode 100644 gpsbabel/reference/coastexp.ref3 create mode 100644 gpsbabel/reference/coastexp.ref4 create mode 100755 gpsbabel/uuid.c create mode 100755 gpsbabel/uuid.h diff --git a/gpsbabel/reference/coastexp.ref2 b/gpsbabel/reference/coastexp.ref2 new file mode 100644 index 000000000..ea914c8f3 --- /dev/null +++ b/gpsbabel/reference/coastexp.ref2 @@ -0,0 +1,171 @@ + + + Navigation Objects + + + {10111213-1415-1617-1819-1a1b1c1d1e1f} + {20212223-2425-2627-2829-2a2b2c2d2e2f} + {30313233-3435-3637-3839-3a3b3c3d3e3f} + {40414243-4445-4647-4849-4a4b4c4d4e4f} + {50515253-5455-5657-5859-5a5b5c5d5e5f} + {60616263-6465-6667-6869-6a6b6c6d6e6f} + {70717273-7475-7677-7879-7a7b7c7d7e7f} + {80818283-8485-8687-8889-8a8b8c8d8e8f} + {90919293-9495-9697-9899-9a9b9c9d9e9f} + {a0a1a2a3-a4a5-a6a7-a8a9-aaabacadaeaf} + + Into The Bay + + + 37.763290 N 122.282580 W + SFBALBAY + + + 37.751613 N 122.339028 W + SFBAY001 + + + 37.817420 N 122.394305 W + SFBAY002 + + + 37.819339 N 122.478302 W + SFGGBRDG + + + 37.773033 N 122.605838 W + SFCHNL01 + + + 37.518860 N 122.529914 W + HMCOLREF + + + 37.482348 N 122.507704 W + HMPILL01 + + + 37.475062 N 122.488531 W + HMPILLPT + + + 37.476448 N 122.475800 W + HMPILL02 + + + 37.495102 N 122.483927 W + HMPILL03 + + + 37.229349 N 122.441589 W + PESCDR01 + + + 37.183397 N 122.411904 W + PIGEON01 + + + 37.090736 N 122.348775 W + ANONUV01 + + + 36.929502 N 122.113725 W + SCRUZ01 + + + 36.934235 N 122.022130 W + SCRUZ02 + + + 36.960666 N 122.024734 W + SCRUZENT + + + 36.581344 N 121.995411 W + CYPRSSPT + + + 36.301110 N 121.919097 W + PTSUR + + + 36.238177 N 121.855209 W + COOPERPT + + + 36.225175 N 121.801314 W + PFEIFENT + + + 36.230449 N 121.797444 W + PFEIFANC + + + 35.879801 N 121.498947 W + SANMRT01 + + + 35.652801 N 121.308485 W + PDRSBLNC + + + 35.623297 N 121.185920 W + SNSMNENT + + + 35.640478 N 121.183772 W + SNSMNANC + + + 35.572353 N 121.152797 W + CAMBRIA + + + 35.449214 N 121.020825 W + PTESTERO + + + 35.216602 N 120.928391 W + PTBUCHON + + + 34.883361 N 120.684631 W + PTSAL01 + + + 34.884641 N 120.652026 W + PTSALENT + + + 34.896555 N 120.649124 W + PTSALANC + + + 34.758180 N 120.642516 W + PURSMAPT + + + 34.572579 N 120.663636 W + PTARGLLO + + + 34.113844 N 120.492630 W + SANMGL01 + + + 34.029483 N 120.471409 W + SANMGL02 + + + 34.019184 N 120.444197 W + SANMGL03 + + + 34.023478 N 120.438209 W + ADCOVENT + + + 34.028615 N 120.439696 W + ADCOVANC + + diff --git a/gpsbabel/reference/coastexp.ref3 b/gpsbabel/reference/coastexp.ref3 new file mode 100644 index 000000000..b26a3eed5 --- /dev/null +++ b/gpsbabel/reference/coastexp.ref3 @@ -0,0 +1,238 @@ + + + + + + + SFBALBAY + SFBALBAY + SFBALBAY + + + + SFBAY001 + SFBAY001 + SFBAY001 + + + + SFBAY002 + SFBAY002 + SFBAY002 + + + + SFGGBRDG + SFGGBRDG + SFGGBRDG + + + + SFCHNL01 + SFCHNL01 + SFCHNL01 + + + + HMCOLREF + HMCOLREF + HMCOLREF + + + + HMPILL01 + HMPILL01 + HMPILL01 + + + + HMPILL02 + HMPILL02 + HMPILL02 + + + + HMPILL03 + HMPILL03 + HMPILL03 + + + + PESCDR01 + PESCDR01 + PESCDR01 + + + + PIGEON01 + PIGEON01 + PIGEON01 + + + + ANONUV01 + ANONUV01 + ANONUV01 + + + + SCRUZ01 + SCRUZ01 + SCRUZ01 + + + + SCRUZ02 + SCRUZ02 + SCRUZ02 + + + + SCRUZENT + SCRUZENT + SCRUZENT + + + + HMPILLPT + HMPILLPT + HMPILLPT + + + + CYPRSSPT + CYPRSSPT + CYPRSSPT + + + + PTSUR + PTSUR + PTSUR + + + + COOPERPT + COOPERPT + COOPERPT + + + + PFEIFENT + PFEIFENT + PFEIFENT + + + + PFEIFANC + PFEIFANC + PFEIFANC + + + + SANMRT01 + SANMRT01 + SANMRT01 + + + + PDRSBLNC + PDRSBLNC + PDRSBLNC + + + + SNSMNENT + SNSMNENT + SNSMNENT + + + + SNSMNANC + SNSMNANC + SNSMNANC + + + + CAMBRIA + CAMBRIA + CAMBRIA + + + + PTESTERO + PTESTERO + PTESTERO + + + + PTBUCHON + PTBUCHON + PTBUCHON + + + + PTSAL01 + PTSAL01 + PTSAL01 + + + + PTSALENT + A description of the Point Sal Entrance mark + A description of the Point Sal Entrance mark + + + + PTSALANC + PTSALANC + PTSALANC + + + + PURSMAPT + PURSMAPT + PURSMAPT + + + + PTARGLLO + PTARGLLO + PTARGLLO + + + + SANMGL01 + SANMGL01 + SANMGL01 + + + + SANMGL02 + SANMGL02 + SANMGL02 + + + + SANMGL03 + SANMGL03 + SANMGL03 + + + + ADCOVENT + ADCOVENT + ADCOVENT + + + + ADCOVANC + ADCOVANC + ADCOVANC + + diff --git a/gpsbabel/reference/coastexp.ref4 b/gpsbabel/reference/coastexp.ref4 new file mode 100644 index 000000000..7752443aa --- /dev/null +++ b/gpsbabel/reference/coastexp.ref4 @@ -0,0 +1,156 @@ + + + Navigation Objects + + 37.763290 N 122.282580 W + SFBALBAY + + + 37.751613 N 122.339028 W + SFBAY001 + + + 37.817420 N 122.394305 W + SFBAY002 + + + 37.819339 N 122.478302 W + SFGGBRDG + + + 37.773033 N 122.605838 W + SFCHNL01 + + + 37.518860 N 122.529914 W + HMCOLREF + + + 37.482348 N 122.507704 W + HMPILL01 + + + 37.476448 N 122.475800 W + HMPILL02 + + + 37.495102 N 122.483927 W + HMPILL03 + + + 37.229349 N 122.441589 W + PESCDR01 + + + 37.183397 N 122.411904 W + PIGEON01 + + + 37.090736 N 122.348775 W + ANONUV01 + + + 36.929502 N 122.113725 W + SCRUZ01 + + + 36.934235 N 122.022130 W + SCRUZ02 + + + 36.960666 N 122.024734 W + SCRUZENT + + + 37.475062 N 122.488531 W + HMPILLPT + + + 36.581344 N 121.995411 W + CYPRSSPT + + + 36.301110 N 121.919097 W + PTSUR + + + 36.238177 N 121.855209 W + COOPERPT + + + 36.225175 N 121.801314 W + PFEIFENT + + + 36.230449 N 121.797444 W + PFEIFANC + + + 35.879801 N 121.498947 W + SANMRT01 + + + 35.652801 N 121.308485 W + PDRSBLNC + + + 35.623297 N 121.185920 W + SNSMNENT + + + 35.640478 N 121.183772 W + SNSMNANC + + + 35.572353 N 121.152797 W + CAMBRIA + + + 35.449214 N 121.020825 W + PTESTERO + + + 35.216602 N 120.928391 W + PTBUCHON + + + 34.883361 N 120.684631 W + PTSAL01 + + + 34.884641 N 120.652026 W + PTSALENT + + + 34.896555 N 120.649124 W + PTSALANC + + + 34.758180 N 120.642516 W + PURSMAPT + + + 34.572579 N 120.663636 W + PTARGLLO + + + 34.113844 N 120.492630 W + SANMGL01 + + + 34.029483 N 120.471409 W + SANMGL02 + + + 34.019184 N 120.444197 W + SANMGL03 + + + 34.023478 N 120.438209 W + ADCOVENT + + + 34.028615 N 120.439696 W + ADCOVANC + + diff --git a/gpsbabel/uuid.c b/gpsbabel/uuid.c new file mode 100755 index 000000000..3f6fc01a2 --- /dev/null +++ b/gpsbabel/uuid.c @@ -0,0 +1,47 @@ +/* + Copyright (C) 2004 Justin Broughton, justinbr@earthlink.net + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA + + */ + +#include "uuid.h" + +static unsigned char +random() +{ + if (getenv("GPSBABEL_FREEZE_TIME")) { + static unsigned char blech = 0; + return blech++; + } else + return ; +} + + +void +uuid_generate(uuid_t uu) +{ + char *cp; + int i; + for (cp = uu, i = 0; i < 16; i++) { + if (getenv("GPSBABEL_FREEZE_TIME")) { + static unsigned char blech = 0; + *cp++ = blech++; + } else { + *cp++ ^= (rand() >> 7) & 0xFF; + } + } +} + diff --git a/gpsbabel/uuid.h b/gpsbabel/uuid.h new file mode 100755 index 000000000..fb8dc02fc --- /dev/null +++ b/gpsbabel/uuid.h @@ -0,0 +1,22 @@ +/* + Copyright (C) 2004 Justin Broughton, justinbr@earthlink.net + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA + + */ + +typedef unsigned char uuid_t[16]; + +void uuid_generate(uuid_t uu); -- 2.30.2